/**
 * 
 */
$(document).ready(function() {
	$("#params").page();
	$( "#sliderSound" ).val(VOLUME);
	$( "#sliderSound" ).slider('refresh');
	$( "#sliderSound" ).on( "slidestop", function( event, ui ) {
		setVolume($( "#sliderSound" ).val());
	} );
	$("#resetLocalStorage").click(function(){
		$("#popupDialogConfig").popup('close');
		resetProgression();
	});
	$(this).simpledialog({
	    'mode' : 'string',
	    'prompt' : 'What do you say?',
	    'buttons' : {
	      'OK': {
	        click: function () {
	          $('#dialogoutput').text($('#dialoglink').attr('data-string'));
	        }
	      },
	      'Cancel': {
	        click: function () { },
	        icon: "delete",
	        theme: "c"
	      }
	    }
	  })
});